<template>
  <div>
    <h2>TsName</h2>
  </div>
</template>
<script setup>
import { onDeactivated, onActivated } from 'vue';
onActivated(() => {
  console.log('onActivated');
});
onDeactivated(() => {
  console.log('onDeactivated');
});

</script>